package com.xusheng.cli.entity.operationLogModule;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.xusheng.cli.common.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author jy
 * @since 2020-09-29 13:45
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class LogEntity extends BaseEntity {

	private static final long serialVersionUID = -4491301251890707071L;


	@JsonProperty("params")
	private String requestParam;

	@JsonProperty("func")
	private String method;

	@JsonProperty("user")
	private Long userId;

	@JsonProperty("uName")
	private String userName;

	@JsonProperty("addr")
	private String ip;

	@JsonProperty("link")
	private String uri;

	/**
	 * 逻辑删除
	 */
	@JsonIgnore
	@TableField(exist = false)
	private Boolean deleted;

}
